<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <title>TODO supply a title</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <script type="text/javascript" src="http://libs.baidu.com/jquery/2.0.0/jquery.js"></script>
        <script type="text/javascript" src="__STATIC__/admin/js/jquery-2.1.0.min.js"></script>
        <link rel="stylesheet" type="text/css" href="__STATIC__/admin/css/app.css" />
        <style type="text/css">  
            <!--
            .pagelist {padding:10px 0; text-align:center;}
            .pagelist span,.pagelist a{ border-radius:3px; border:1px solid #dfdfdf;display:inline-block; padding:5px 12px;}
            .pagelist a{ margin:0 3px;}
            .pagelist span.current{ background:#09F; color:#FFF; border-color:#09F; margin:0 2px;}
            .pagelist a:hover{background:#09F; color:#FFF; border-color:#09F; }
            .pagelist label{ padding-left:15px; color:#999;}
            .pagelist label b{color:red; font-weight:normal; margin:0 3px;}
            .pagelist ul{overflow:hidden;text-align: center}
            .pagelist li{list-style: none;display:inline}
            html{
                height:100%;
                margin:0;
            }
            .text{
                text-align:center;
                text-align:right;
            }
            body{width:810px;margin:0px auto}
            #box{
                width:810px;
            }
            #left{
                width:150px;
                height:150px;
                background-color:blue;
                border:1px dotted;
                float:left;
            }
            #main{
                width:150px;
                height:152px;
                background-color:red;
                border:1px dotted;
            float:left

            }
            #right{
                width:150px;
                height:150px;

                border:1px dotted;
            float:left
            -->
        </style>
    </head>
    <body>
        <div id="box" style="margin-top:60px">
            <h2 style="text-align: center">出入库日志</h2>
            <div style="clear:both;margin-top:0px">
                <form method="post" id="searchProduct" action="stocklog">
                    开始时间：<input type="date" name="startdate" value="{$start}"/>
                    结束时间：<input type="date" name="enddate" value="{$end}"/>
                    <button type="submit">&nbsp;&nbsp;搜索&nbsp;&nbsp;</button>
                </form>
            </div>
        <div>
            <table border="1" cellspacing="0" cellpadding="0" style="text-align:center;margin-top:15px">
                    <tr bgcolor="#88C1C8" style="height: 30px">
                        <th width='130px'>商品名称</th>
                        <th width='100px'>出入库类型</th>
                        <th width='100px'>操作人</th>
                        <th width='80px'>计量单位</th>
                        <th width='80px'>商品数量</th>
                        <th width='150px'>操作时间</th>
                        <th width='170px'>备注</th>
                    </tr>
                    {if $stocklog!=null}
                    {volist name="stocklog" id="vo"}
                        <tr style="height: 40px">
                            <td>{$vo.pname}</td>
                            <td>{$vo.type==1?'入库':'出库'}</td>
                            <td>{$vo.sname}</td>
                            <td>{$vo.unit}</td>
                            <td>{$vo.count}</td>
                            <td>{$vo.gentime|date="Y-m-d h:i:s",###}</td>
                            <td>{$vo.remarks}</td>
                        </tr>
                    {/volist}
                    {else /}
                    <tr style="height: 40px"><td colspan="10">没有数据</td></tr>
                    {/if}
            </table>
            <div class="pagelist">{$page}</div>
        </div>
        </div>
    </body>
</html>
